#ifndef USERHIGHLIGHTER_H
#define USERHIGHLIGHTER_H

#include <QSyntaxHighlighter>
#include <QVector>

class userhighlighter : public QSyntaxHighlighter
{
    Q_OBJECT

public:
    userhighlighter(QTextDocument *parent = 0);

protected:
    void highlightBlock(const QString &text);

private:
    QVector<QTextCharFormat> userFormats;
    bool highlighted;

public slots:
    void toggleHighlighting(const bool mode);
};

#endif // USERHIGHLIGHTER_H
